package com.zhoupeisen.bean;


import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @ClassName UserImportSelector
 * @Description TODO
 * @Author Administrator
 * @Data 下午 09:13
 * @Version 1.0
 **/
public class UserImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        //获取配置类的名称
        System.out.println(UserConfiguration.class.getName());
        //返回要加载的类的全路径名
        return new String[]{UserConfiguration.class.getName()};
    }
}
